<template>
  <div>
    <card>
      <p class="close" slot="extra" @click="showChange('icp')">
        <Icon type="md-close"/>
      </p>
      <p slot="title">ICP 信息管理</p>
      <Input placeholder="title" v-model="icp"/>
      <Button type="info" @click="setChange('/api/icp',{icp})">修改</Button>
    </card>
  </div>
</template>

<script>
export default {
  props: ['showChange', 'setChange'],
  data() {
    return {
      icp: ''
    }
  },
  beforeMount() {
    this.icp = this.$store.state.icp
  }
}
</script>

<style lang="less" rel="stylesheet/less" scoped>
</style>